package models

import "time"

type User struct {
	ID               int    `gorm:"primary_key" json:"id"`
	Account      string
	Phone      string
	Password      string
	Email      string
	Type      int
	Money      float64
	PaymentPassword      string
	AvailableAmount      float64
	FreezingAmount      float64
	IsEnabled      int
	LoggedIp      string
	AgencyFee      float64
	CurrentCommission      float64
	ChangeCommission      float64
	CreatedAt        time.Time
	UpdatedAt        time.Time
	LoggedAt        time.Time
}

//修改默认表名
func (User) TableName() string {
	return "users"
}
